package com.db.ionio.io;

/**
 * @author Alexander Kotov (kotov.alex.22@gmail.com)
 */
public class IOServerApp {
    public static void main(String[] args) {
        if (args.length < 2) {
            System.out.format("Usage: %s <port> <file>%n", IOServerApp.class.getName());
            System.exit(1);
        }

        int port = Integer.parseInt(args[0]);
        String fileName = args[1];
        FileIOServer server = new FileIOServer(port, fileName);
        server.run();
    }
}
